<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 

<?php 
require 'hrfuns.php';
$db = GetDB(); 
?>

<html>
<head>
<title>Vacation report</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<link rel="stylesheet" href="hr.css" />
</head>

<body>
<br />
<table cellspacing=10 cellpadding=5>
<tr><td>
<form method="post" action="vadetail.php">
<legend>选择条件</legend>
<table bgcolor=#c8c8c8 cellspacing=1 cellpadding=1 align="center">
<tr>
    
    <td>员工： </td>
    <td><select name="selEmID" class="input-list">
        <option value="all">全部</option>
<?php
    $lstEmInfo = GetEmInfoList($db);
    foreach ($lstEmInfo as $eminfo) {
        echo "        <option value=\"" . $eminfo['em_id'] . "\">" 
            . $eminfo['em_id'] . '| ' . $eminfo['em_name'] . "</option>\n";
    }
?>
    </select></td>
 
    <td>部门： </td>
    <td><select name="selDepart" class="input-list">
        <option value="0">All</option>
<?php
    $lstDepart = GetDepartList($db);
    foreach ($lstDepart as $depart) {
        echo "        <option value=\"" . $depart['depart_id'] . "\">" 
            . $depart['depart_name'] . "</option>\n";
    }
?>
    </select></td>
	<td>班组：</td>
	<td><select name="selClass" class="input-list">
	    <option value="all">All</option>
		<option value="A">A</option>
		<option value="B">B</option>
		<option value="C">C</option>
		<option value="D">D</option>
	</select></td>
	<td><input type="submit" name="submit" value="  Go  "></td>
</td></tr>
</table>
</form>
</td></tr>
</table>
</body>
</html>
<?php $db->close(); ?>

